package com.wosai.register.model;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown=true)
public class Order extends BaseEntity {

    @JsonProperty("order_id")
    private String id;
    @JsonProperty("pay_type")
    private String type;
    @JsonProperty("total_pay")
    private String total;
    @JsonProperty("pay_time")
    private String datePaid;
    @JsonProperty("pay_state")
    private String state;
    @JsonProperty("discount")
    private String discount;
    @JsonProperty("update_time")
    private String dateReturned;
    @JsonProperty("hand_discount_type")
    private String extraDiscountType;
    @JsonProperty("hand_discount_type_value")
    private String extraDiscountValue;
    @JsonProperty("opt_userid")
    private String operatorUserId;
    @JsonProperty("opt_username")
    private String operatorUsername;
    
    @JsonProperty("orderid_hist")
    private String orderidHist;
    @JsonProperty("order_bak1")
    private String orderBak1;
    @JsonProperty("order_bak2")
    private String orderBak2;
    @JsonProperty("order_bak3")
    private String orderBak3;

    @JsonProperty("order_items")
    private List<OrderItem> itemList;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getDatePaid() {
        return datePaid;
    }

    public void setDatePaid(String datePaid) {
        this.datePaid = datePaid;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getDateReturned() {
        return dateReturned;
    }

    public void setDateReturned(String dateReturned) {
        this.dateReturned = dateReturned;
    }

    public String getExtraDiscountType() {
        return extraDiscountType;
    }

    public void setExtraDiscountType(String extraDiscountType) {
        this.extraDiscountType = extraDiscountType;
    }

    public String getExtraDiscountValue() {
        return extraDiscountValue;
    }

    public void setExtraDiscountValue(String extraDiscountValue) {
        this.extraDiscountValue = extraDiscountValue;
    }

    public String getOperatorUserId() {
        return operatorUserId;
    }

    public void setOperatorUserId(String operatorUserId) {
        this.operatorUserId = operatorUserId;
    }

    public String getOperatorUsername() {
        return operatorUsername;
    }

    public void setOperatorUsername(String operatorUsername) {
        this.operatorUsername = operatorUsername;
    }

    public List<OrderItem> getItemList() {
        return itemList;
    }

    public void setItemList(List<OrderItem> itemList) {
        this.itemList = itemList;
    }

    public String getOrderidHist() {
        return orderidHist;
    }
    public void setOrderidHist(String orderidHist) {
        this.orderidHist = orderidHist;
    }

    public String getOrderBak1() {
        return orderBak1;
    }
    public void setOrderBak1(String orderBak1) {
        this.orderBak1 = orderBak1;
    }

    public String getOrderBak2() {
        return orderBak2;
    }
    public void setOrderBak2(String orderBak2) {
        this.orderBak2 = orderBak2;
    }

    public String getOrderBak3() {
        return orderBak3;
    }
    public void setOrderBak3(String orderBak3) {
        this.orderBak3 = orderBak3;
    }
    
}
